package com.xuxin.nantai.contract;

import com.xuxin.nantai.bean.BaseBean;
import com.xuxin.nantai.bean.SelectInspectorBean;
import com.xuxin.nantai.presenter.SelectDetailUpdatePresenter;

/**
 * Created by xu_xin
 * Created on 2020.06.17 0017
 */
public interface SelectDetailUpdateContract {

    interface Model {

        void getInspector(SelectDetailUpdatePresenter presenter, String HID);

        void save(SelectDetailUpdatePresenter presenter,
                  String LoginName,
                  String UserName,
                  String Guid,
                  String DID,
                  String HID,
                  String ProductName,
                  String ProductCode,
                  String DefectDes,
                  String DefectNum);
    }

    interface View extends BaseContract.view {

        void onSuccess(SelectInspectorBean selectInspectorBean);

        void onSuccess(BaseBean baseBean);
    }

    interface Presenter extends BaseContract.presenter {

        void getInspector(String HID);

        void save(String LoginName,
                  String UserName,
                  String Guid,
                  String DID,
                  String HID,
                  String ProductName,
                  String ProductCode,
                  String DefectDes,
                  String DefectNum);

        void onSuccess(SelectInspectorBean selectInspectorBean);

        void onSuccess(BaseBean baseBean);
    }
}